﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Windows.Automation;
using System.Runtime.InteropServices;
using System.IO;
using System.ComponentModel;
using Microsoft.Win32;
using System.Collections;
using System.Media;
using Tedds_Tool;
using CommonInterfaces.Models;
using Tedds_Tool.Automatables;
using StandardScriptItems;
using LEET.Application.Custom_Classes;

namespace GUI.Custom_Classes
{
    /// <summary>
    /// Interaction logic for CreatePrecond.xaml
    /// </summary>
    public partial class CreatePrecond : CreateRulePart
    {
        public CreatePrecond(ILEETFactory factory, IScript sv, IScriptFinder scriptFinder)
            : base(factory, sv, scriptFinder) 
        {
            InitializeComponent();
            addSelectedVerify(null, null);
            createButton.IsDefault = true;
            cancelButton.IsCancel = true;
        }

        protected override TextWriter GetWriter(String name)
        {
            return scriptFinder.CreatePrecondition(name);
        }

        protected override string NamePrefix { get { return "PreconditionText"; } }
        protected override string ItemLabel { get { return "Verify"; } }
        protected override string RulePartType { get { return "Precondition"; } }
        
        public override StackPanel LPanel { get { return lPanel; } }
        public override ListBox BuildPanel { get { return buildPanel; } }
        public override TextBox NameBox { get { return nameBox; } }
        //public override ComboBox TargetBox { get { return targetBox; } }


    }
}
